/**
 * 章节测验的API
 */

import request from '@/utils/request'

const apis = {
  GET_QUESTION_LIST: '/lesson/getquestionlist',
  START_EXAM: '/lesson/startexamination',
  FINISH_EXAM: '/lesson/finishexamination'
}

export default {
  // 信息列表
  getQuestionList (data) {
    let dt = data || {}
    return request.post(apis.GET_QUESTION_LIST, dt.params, {
      headers: dt.headers || {}
    })
  },
  startExam (data) {
    let dt = data || {}
    return request.post(apis.START_EXAM, dt.params, {
      headers: dt.headers || {}
    })
  },
  finishExam (data) {
    let dt = data || {}
    return request.post(apis.FINISH_EXAM, dt.params, {
      headers: dt.headers || {}
    })
  }
}
